function _new(constructor, ...args) {

  let proto = constructor.prototype
  let obj = Object.create(proto)
  let ret = constructor.apply(obj, args)
  if (ret && (typeof ret === 'object' || typeof ret === 'function')) return ret
  return obj
}

function Person(_name, _age) {
  this.name = _name
  this.age = _age
}
let xm = _new(Person, 'xm', 20)
console.log(xm);

